<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;

class Milepost extends Controller{
    public function index(){
        $milepost=Db::name('milestone')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            ->select();
        $this->assign('milepost',$milepost);

        return view("milepost");
    }

}